package com.mldong.modules.sys.controller;


import cn.dev33.satoken.annotation.SaCheckPermission;
import com.mldong.base.CommonResult;
import com.mldong.modules.sys.service.MachineService;
import com.mldong.modules.sys.vo.MachineVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 * 系统属性监控控制器
 * @author mldong
 * @date 2022-01-07
 */
@RestController
public class MachineController {

    @Resource
    private MachineService machineService;

    /**
     * 系统属性监控
     *
     */
    @PostMapping("/sys/machine/info")
    @SaCheckPermission(value = "sys:machine:info")
    public CommonResult<MachineVO> info() {
        return CommonResult.data(machineService.info());
    }
}
